<gm:page title="Xmap 1" authenticate="false">

  <table width="300" align="center" border="1" style="background-color:#EEEEEE">
    <tr height="25">
      <td align="center"><b>Xmap 1</b></td>
      <td align="center"><a href="xmap2.html">Xmap 2</a></td>
      <td align="center"><a href="xmap3.html">Xmap 3</a></td>
    </tr>
  </table>
  
  <p></p>
  
  <h1 style="text-align:center">Today's World News Mashup by Anurag Shrivastava</h1>
  
  <table width="100%">
    <tr>
      <td width="350" valign="top">
        <gm:list id="Xlist" data="http://ws.geonames.org/rssToGeoRSS?feedUrl=http://today.reuters.com/rss/worldNews" pagesize="15" template="XlistTemplate">
          <gm:handleEvent src="Xmap" />
        </gm:list>
      </td>
      <td width="10">
      </td>
      <td valign="top">
        <gm:map id="Xmap" style="border:solid black 2px" control="large" maptypes="true" data="${Xlist}" latref="geo:lat" lngref="geo:long" infotemplate="XmapTemplate">
          <gm:handleEvent src="Xlist" />
        </gm:map>
      </td>
    </tr>
  </table>

  <gm:template id="XmapTemplate">
    <div align="center" repeat="true">
      <h3><gm:text ref="atom:title" /></h3>
    </div>
  </gm:template>

  <gm:template id="XlistTemplate">
    <table class="blue-theme" width="100%">
      <thead>
        <th>Magnitude/location</th>
      </thead>
      <tr repeat="true">
        <td><gm:text ref="atom:title" /></td>
      </tr>
      <tfoot>
        <tr>
          <td align="center"><gm:pager /></td>
        </tr>
      </tfoot>
    </table>
  </gm:template>

</gm:page>